package com.yuantu.judiciary.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 系统启用禁用状态
 *
 * @author syw
 * @since 2023-06-12
 **/
@Getter
@AllArgsConstructor
public enum SysOnOffState {

    /**
     * 启用
     */
    ON,

    /**
     * 禁用
     */
    OFF,

    ;

    public static SysOnOffState getValue(String value) {
        for (SysOnOffState state : values()) {
            if (state.name().equals(value)) {
                return state;
            }
        }
        return null;
    }

}
